//
//  HPPosNumberKeyBoardView.h
//  V-POS
//
//  Created by handpay on 12-11-9.
//  Copyright (c) 2012年 handpay. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    VPOSKeyboardType_PIN,        // 银行卡密码
    VPOSKeyboardType_NUMBER,     // 数字
    VPOSKeyboardType_CARDNO,     // 银行卡号
} VPOSKeyboardType;

@protocol VPOSNumberKeyBoardViewDelegate <NSObject>

- (void) inputView:(UIControl *)inputView notifyInputString:(NSString *)inputString;

- (void) responseOKButtonWithInputView:(UIControl *)inputView;

@optional

- (void) responseCancelButtonWithInputView:(UIControl *)inputView;

- (void) responseCorrectButtonWithInputView:(UIControl *)inputView;

- (void) responseCloseButtonWithInputView:(UIControl *)inputView;

@end

@interface VPOSNumberKeyBoardView : UIView

@property (nonatomic, assign) id<VPOSNumberKeyBoardViewDelegate> delegate;

//- (id)initPinKeyboardWithDelegate:(id<VPOSNumberKeyBoardViewDelegate>)delegate frame:(CGRect)frame;
//
//- (id)initNumberKeyboardWithDelegate:(id<VPOSNumberKeyBoardViewDelegate>)delegate_;

- (id)initKeyboardWithType:(VPOSKeyboardType)type delegate:(id<VPOSNumberKeyBoardViewDelegate>)delegate frame:(CGRect)frame;

@end
